home *** CD-ROM | disk | FTP | other *** search
/ VIPER Paradice / VIPER.ISO / pc / SETUP.EXE / SETUP.DXR / 00036_Go to Frame X Button.ls < prev    next >
Encoding:
Text File  |  2002-06-30  |  788 b   |  26 lines

  1. property myTargetFrame
  2.  
  3. on getBehaviorDescription me
  4.   return "GO TO FRAME X" & RETURN & RETURN & "Moves the playback head to the chosen frame when the user clicks on the sprite" & RETURN & RETURN & "PERMITTED MEMBER TYPES:" & RETURN & "Graphic members" & RETURN & RETURN & "PARAMETERS:" & RETURN & "* Go to which frame on mouseUp?"
  5. end
  6.  
  7. on getBehaviorTooltip me
  8.   return "Use with graphic members. " & "Moves the playback head to the specified frame on mouseUp."
  9. end
  10.  
  11. on mouseUp me
  12.   go(myTargetFrame)
  13. end
  14.  
  15. on isOKToAttach me, aSpriteType, aSpriteNum
  16.   tisok = 0
  17.   if aSpriteType = #graphic then
  18.     tisok = 1
  19.   end if
  20.   return tisok
  21. end
  22.  
  23. on getPropertyDescriptionList me
  24.   return [#myTargetFrame: [#comment: "Go to which frame on mouseUp?", #format: #integer, #default: the frame]]
  25. end
  26.